package com.lxk.finance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.lxk.finance.domain.AccUserAccount;
import com.lxk.service.finance.response.UserAccountDto;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 用户账户视图对象 acc_user_account
 *
 * @author LXK-RY5
 * @date 2024-07-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMappers(value = {
    @AutoMapper(target = AccUserAccount.class),
    @AutoMapper(target = UserAccountDto.class)
})
public class AccUserAccountVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 状态，1开启 0关闭
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_normal_disable")
    private Integer status;

    /**
     * 账户类型account_type
     */
    @ExcelProperty(value = "账户类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "account_type")
    private Integer accountType;

    /**
     * 余额
     */
    @ExcelProperty(value = "余额")
    private BigDecimal amount;

    /**
     * 用户类型
     */
    @ExcelProperty(value = "用户类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "user_type")
    private String userType;


}
